import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

import goodRouter from './modules/good'
import common from './modules/common'

const routes = [

    ...common,

    // 导入商品模块
    ...goodRouter
]

const router = new VueRouter({
    mode: 'hash',
    base: process.env.BASE_URL,
    routes
})

export default router